package bestTeam.WalkieDoggie.client;

public class Facebook {
	// get these from your FB Dev App
	private static final String api_key = "141266756000631";
	private static final String secret = "a8e6efeff30fb763ede2cb7bbf8fe804";
	private static final String client_id = "141266756000631";  
	private static final String redirect_uri = "https://walkie-doggie.appspot.com/";
		
	public static String getClientId() {
		return client_id;
	}
	
	public static String getAPIKey() {
		return api_key;
	}
	public static String getSecret() {
		return secret;
	}
	public static String getLoginRedirectURL() {
		return "https://graph.facebook.com/oauth/authorize?client_id=" +
				client_id + "&display=page&redirect_uri=" +
				redirect_uri+"&scope=user_status,publish_stream,offline_access,email";
	}
	public static String getAuthURL(String authCode) {
		return "https://graph.facebook.com/oauth/access_token?canvas=1&fbconnect=0&client_id=" +
				client_id+"&redirect_uri=" +
				redirect_uri+"&client_secret="+secret+"&code="+authCode;
	}
	
	public static String getRedirectUri(){
		
		return redirect_uri;
	}

	public static String getLogoutUrl() {
		return "https://www.facebook.com/logout.php?access_token="+WalkieDoggie.loginInfo.getAccessToken()+"&confirm=1&next="+Facebook.getRedirectUri();
	}
}
